package com.lx.mobileplayer.mvp.view.adapter


import android.widget.ImageView
import android.widget.TextView
import com.itheima.player.model.bean.VideosBean
import com.lx.mobileplayer.R
import com.lx.mobileplayer.ext.loadImage

/**
 * 类说明：MV页的子Fragment的adapter
 * Created by liuxiong on 2019/4/24.
 */
class MvChildAdapter(data:ArrayList<VideosBean>): BaseListAdapter<VideosBean>(R.layout.item_mv,data) {

    constructor():this(ArrayList<VideosBean>())

    override fun onBindDataToView(holder: BaseViewHodler, bean: VideosBean) {

        holder.getView<TextView>(R.id.artist)?.text = bean.artistName
        holder.getView<TextView>(R.id.title)?.text = bean.title

        holder.getView<ImageView>(R.id.bg)?.loadImage(bean.playListPic)
    }
}